<template>
  <view>
    <button @click="openPopup">打开弹窗</button>
    <u-popup v-model="show" mode="center" title="提示">
      这是弹窗内容
    </u-popup>
  </view>
</template>
 
<script setup>
import { ref } from 'vue';
const show = ref(false);
 
function openPopup() {
  show.value = true;
}
</script>